#include "intervaltime.h"
#include <Windows.h>

namespace ZH
{
	IntervalTime::IntervalTime()
	{
		Reset();
	}

	size_t IntervalTime::Elapse()const
	{
		return ::GetTickCount() - m_uLastTick;
	}

	bool IntervalTime::Reset()
	{
		m_uLastTick = ::GetTickCount();
		return true;
	}
}	// namespace ZH
